﻿using System;
using System.Web.Routing;
using System.Collections.Generic;

namespace SharePointMvc
{
    [Serializable]
    internal class RouteCacheItem
    {
        internal RouteCacheItem(RouteData routeData, Route route)
        {
            if (routeData == null)
            {
                throw new ArgumentNullException("routeData");
            }

            Dictionary = new Dictionary<string, object>(routeData.Values);
            Url = route.Url;
        }

        internal string Url { get; set; }
        internal Dictionary<string, object> Dictionary { get; set; }
    }
}